<template>
  <router-link to="/about">跳转到关于我们</router-link>
  <button @click="goAbout">跳转到关于我们</button>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const goAbout = () => {
  router.push('/about')
}
</script>

<style  scoped>
</style>